﻿@model IEnumerable<trangbaocao.Models.Paramenter_Base_TruyenDan>
<div align="center"><h1>DANH MỤC THUỘC TÍNH CƠ BẢN THIẾT BỊ <br /><p style="color: #660099; font-size:18px; margin-top:5px;"> @ViewBag.NameTD</p></h1></div>
<div class="container_12">
    <div class="grid_12">
@using (Html.BeginForm("CheckedAction", "Manage_TruyenDan", FormMethod.Post, new { id = "CheckedAction", name = "CheckedAction" }))
{           
     if (TempData["msg"] != null)
                    {                            
                        <span class="notification n-success">@TempData["msg"]</span>
                    }  
            <div class="float-right">
                <a href="@Url.Action("Add_Parameter_Base", "Manage_TruyenDan", new { truyendan_id = ViewData["truyendan_id"] })" class="button">
                    <span>Thêm mới thông số<img src="../../Content/Body/Images/plus-small.gif"  width="12" height="9" alt="Thêm mới" /></span>  
                </a>
            </div>
            <div class="module">
            <h2 align="right"><span align="right"><a href="@Url.Action("Index")">Quay lại</a></span></h2>                  
                <div class="module-table-body">
                    <div class="scrolling" style=" height:400px">
                        <div class="data-table" style="width:100%">
                            <table id="myTable" class="tablesorter">
                                <thead>
                                    <tr>
                                        <th style="width:10%;">STT</th>
                                        <th style="width:10%;">Xóa</th>
                                        <th style="width:10%;">Sửa</th>
                                        <th style="width:35%;">Thuộc tính thiết bị</th>
                                        <th >Đặc tả</th>
                                        <th >Kiểu dữ liệu</th>
                                        <th >Giá trị</th>
                                    </tr>
                                </thead>
                            <tbody>
                        @{int stt = 0;}
                        @foreach (var item in Model)
                        {
                            stt++;
                            <tr>
                                <td class="align-left"; style="padding-left:10px">@stt</td>
                                <td class="align-center">
                                    <a href="@Url.Action("Del_Parameter_Base", "Manage_TruyenDan", new { pra_id = item.paramenter_base_id, truyendan_id = ViewData["truyendan_id"] })" onclick="return confirm('Bạn muốn xóa thông tin này?');" title="Xóa thông tin"><img src="../../Content/Body/Images/cross-on-white.gif" width="16" height="16" alt="delete"/></a>&nbsp;&nbsp;&nbsp;
                                    @*<a href="" title=""><img src="../../Content/Body/Images/tick-circle.gif"  width="16" height="16" alt="published" /></a>*@
                                 </td> 
                                 <td class="align-center">  
                                    <a href="@Url.Action("Edit_Parameter_Base", "Manage_TruyenDan", new { para_id = item.paramenter_base_id })" title="Sửa thông tin"><img src="../../Content/Body/Images/pencil.gif"  width="16" height="16" alt="edit" /></a>&nbsp;&nbsp;&nbsp;
                                    @*<a href=""><img src="../../Content/Body/Images/balloon.gif" width="16" height="16" alt="comments" /></a>*@
                                </td>
                                                             
                                <td> @Html.DisplayFor(modelItem => item.name_paramenter)</td>
                                <td> @Html.DisplayFor(modelItem => item.unit)</td>
                                 <td> @Html.DisplayFor(modelItem => item.datatype)</td>
                                <td> @Html.DisplayFor(modelItem => item.value_max)</td> 
                            </tr>
                        }   
                        </tbody>
                       
                        </table>
                      <input type="hidden" id = "device_id" value="0" />
                    </div>
                   </div> <!-- End data-table--> 
                    <div class="pager" id="pager">
                        <div>
                        <img class="first" src="../../Content/Body/Images/arrow-stop-180.gif"  alt="first"/>
                        <img class="prev" src="../../Content/Body/Images/arrow-180.gif" alt="prev"/> 
                        <input type="text" class="pagedisplay input-short align-center"/>
                        <img class="next" src="../../Content/Body/Images/arrow.gif" alt="next"/>
                        <img class="last" src="../../Content/Body/Images/arrow-stop.gif" alt="last"/> 
                        <select class="pagesize input-short align-center">
                            <option value="20" selected="selected">20</option>
                            <option value="30">30</option>
                            <option value="40">40</option>
                        </select>
                        </div>
                    </div>
                   
                    <div style="clear: both"></div>
               
                </div> <!-- End .module-table-body -->
            </div> <!-- End .module --> 
            <div class="bottom-spacing">
                
        </div>   
}                                                                    
	</div> <!-- End .grid_12 -->            
    <div style="clear:both;"></div>     
   